package com.example.vehicle.service;

import com.example.entity.Household;
import com.example.result.CommonResult;
import com.example.vehicle.vo.VehicleVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface VehicleService {
    /**
     * 停车场管理-车辆全查
     * @param vehicleCode
     * @return
     */
    CommonResult getVehicle(String vehicleCode);

    /**
     * 停车场管理-车辆删除
     * @param id
     * @return
     */
    int delVehicle(Integer id);

    /**
     * 停车场管理-车辆增改
     * @param vehicle
     * @return
     */
    int saveOrUpdateVehicle(MultipartFile file, VehicleVO vehicle) throws IOException;

    /**
     * 停车场管理-住户全查
     * @param householdType
     * @return
     */
    List<Household> getHouseAll(String householdType);
}
